import http from "@/api";

/**
 * 上传文件
 * @param data
 */
export const uploadApi = (data: object) => {
    return http.post(`/file/upload`, data);
}

/**
 * 分片上传
 * @param data
 */
export const uploadMultipartApi = (data: object) => {
    return http.post(`/file/upload/multipart`, data);
}

/**
 * 批量上传文件
 * @param data
 */
export const uploadMultiApi = (data: object) => {
    console.log(data);
    return http.post(`/file/upload/multi`, data);
}

